<!DOCTYPE html>
<html lang="en">
<head>
<#include "/common/head.ftl"/>
<script type="text/javascript">
	$(document).ready(function() {

	});
	function submitForm() {
		var userNickname = $.trim($("#userNickname").val());
		if (userNickname != "") {
			$("#form1").submit();
		} else {
			$("#validInfo").text("请填写昵称!");
			return false;
		}
	}
</script>
</head>
<body>
	<#include "/common/header.ftl"/>
	<!-- 主内容 -->
	<div class="wrap">
		<div class="container">
			<div class="container-bd">

				<div class="modpass">
					<form id="form1" name="form1" method="post"
						action="${path}/user/infoModifySave">
						<div class="modifyPsd">
							<div class="reg-head-title">我的资料</div>
							<div class="mp-form">
								<div class="line">
									<label>用户昵称：</label>
									<div class="mp-inp">
										<input type="text" name="userNickname" id="userNickname"
											maxlength="30" class="username"
											value="${(user.userNickname)!''}">
									</div>
								</div>
								<div class="line">
									<label>用户性别：</label>
									<div class="mp-inp">
										<select name="userGender" id="userGender"><option
												value="0"<#if
												user.userGender==0>selected="selected"</#if> >未设置</option>
											<option value="1"<#if
												user.userGender==1>selected="selected"</#if>>男</option>
											<option value="2"<#if
												user.userGender==2>selected="selected"</#if>>女</option></select>
									</div>
								</div>
								<div>
									<span id="validateInfo" style="color: red;"></span>
								</div>
								<div class="btn-save">
									<input type="button" value="保存" class="common_btn"
										onclick="submitForm();">
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<#include "/common/footer.ftl"/>
</body>
</html>